import request from '@/utils/request';
import type { eningListData } from './types';

/**
* @author: 马赛飞
* @Description: 获取分类列表的数据
* @param: 
*/
export const getEningList = () => {
  return request.get<any,eningListData>('revision/subject/category')
}

/**
* @author: 马赛飞
* @Description: 获取某个分类下的听单列表
* @param: 
*/
export const getListeningList = (pages) => {
  return request.get<any,eningListData>(`revision/subject/categorySubjectList/${pages.title}?pageNum=${pages.pageNum}&pageSize=${pages.pageSize}`)
}

/**
* @author: 马赛飞
* @Description: 获取听单详情
* @param: 
*/
export const getListeningDetail = (urlList) => {
  return (`https://m.ximalaya.com/revision/subject/category${urlList}`);
}